package com.ydd.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("系统配置实体类")
public class SysConfig implements Serializable {
    private Integer id;

    @ApiModelProperty("配置名称")
    @JsonProperty("group_value")
    private String groupValue;

    @ApiModelProperty("tab 引入的组件名称")
    @JsonProperty("tab_value")
    private String tabValue;

    @ApiModelProperty("配置配置键名英文")
    @JsonProperty("attr_key")
    private String attrKey;

    @ApiModelProperty("配置字段中文名")
    @JsonProperty("attr_name")
    private String attrName;

    @ApiModelProperty("配置字段值")
    @JsonProperty("attr_value")
    private String attrValue;

    @ApiModelProperty("删除标记 0：正常，1：删除")
    @TableLogic
    @JsonProperty("del_flag")
    private Integer delFlag;

    @ApiModelProperty("配置类型 0：文本框，1：文本域...")
    private Integer type;

    @ApiModelProperty("单选多选数据值")
    @JsonProperty("config_value")
    private String configValue;

    @ApiModelProperty("验证规则")
    private String validator;

    @ApiModelProperty("提示信息")
    private String placeholder;

    @ApiModelProperty("0 不可删除，1可删除")
    @JsonProperty("can_delete")
    private Integer canDelete;

    @ApiModelProperty("排序")
    @JsonProperty("sort_num")
    private Integer sortNum;
}
